<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>三列布局解决方案6-postion定位</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    #parent,body,html{height:100%}
    #parent{position: relative;}
    #left{position: absolute;top:0;bottom:0;left:0;width:200px;}
    #center{position: absolute;top:0;bottom:0;left:200px;width:200px;}
    #right{position: absolute;top:0;bottom:0;left:400px;right:0;}

    #left{background-color: green;}
    #center{background-color: blue;}
    #right{background-color: blueviolet;}
    /* 200px 200px  100% - 400px */
  </style>
</head>

<body>
  <div id="parent">
    <div id="left"></div>
    <div id="center"></div>
    <div id="right"></div>
  </div>
</body>

</html>